//
//  WBDemoViewController.swift
//  Weibo
//
//  Created by eju_wangzhenxing on 16/11/7.
//  Copyright © 2016年 qisitianxia. All rights reserved.
//

import UIKit

class WBDemoViewController: WBBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        self.title = "\(navigationController?.childViewControllers.count ?? 0)"

        setUpUI()
    }
    
    @objc fileprivate func leftClick() {
        
        let vc = WBDemoViewController()
        
        vc.hidesBottomBarWhenPushed = true
        
        navigationController?.pushViewController(vc, animated: true)
    }
}

extension WBDemoViewController {
    
    override func setUpUI() {
         navItem.rightBarButtonItem = UIBarButtonItem.init(title: "下一个", titleFontSize: 16, target: self, action: #selector(leftClick))
    }

}
